<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>林书辞</title>
    <!-- 确保 Tailwind CSS 正确加载 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- 简化 Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                    }
                }
            }
        }
    </script>
    
    <!-- 关键样式用基础 CSS 确保生效 -->
    <style>
        /* 基础样式确保布局生效，不依赖 Tailwind */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        .image-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
            margin: 20px auto;
            max-width: 600px;
        }
        .image-container img {
            width: 100%;
            height: auto;
            display: block; /* 解决图片底部间隙问题 */
        }
    </style>
    
    <!-- 补充 Tailwind 工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .image-overlay {
                @apply absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4 text-white transform translate-y-full transition-transform duration-300;
            }
            .image-container:hover .image-overlay {
                @apply translate-y-0;
            }
            .image-container:hover {
                @apply -translate-y-2 shadow-lg;
            }
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- 顶部导航 -->
    <header class="bg-white shadow-sm py-4">
        <div class="container">
            <h1 class="text-2xl font-bold text-primary text-center">
                <i class="fa fa-user mr-2"></i>书展新篇迎晓日，辞凝暖意待春风
            </h1>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container py-8">
        <!-- 图片展示 -->
        <div class="image-container cursor-pointer">
            <img src="/image/pic1.png" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic2.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic3.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic4.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic5.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic6.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic7.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic8.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic9.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic10.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic11.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic12.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic13.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic14.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic15.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic16.jpg" alt="阳谋" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-阳谋</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic17.jpg" alt="阳谋" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-阳谋</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic18.jpg" alt="阳谋" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-阳谋</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic19.jpg" alt="阳谋" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-阳谋</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic20.jpg" alt="黄豆粉" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-阳谋</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic21.jpg" alt="天使" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-天使</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic22.jpg" alt="天使" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-天使</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic23.jpg" alt="天使" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-天使</p>
            </div>
        </div>

        <div class="image-container cursor-pointer">
            <img src="/image/pic24.jpg" alt="天使" class="rounded-lg">
            <div class="image-overlay">
                <h3 class="font-semibold text-lg">demo</h3>
                <p class="text-sm text-gray-200 mt-1">林书辞-天使</p>
            </div>
        </div>

        
    </main>

    <!-- 页脚 -->
    <footer class="bg-white mt-16 py-6 border-t">
        <div class="container text-center text-gray-500 text-sm">
            <p>© BY 无妄</p>
        </div>
    </footer>

    <!-- 图片查看模态框
    <div id="imageModal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
        <div class="absolute inset-0 bg-black/70 backdrop-blur-sm"></div>
        <div class="relative z-10 bg-white rounded-lg max-w-4xl w-full max-h-[90vh] m-4">
            <button id="closeModal" class="absolute top-4 right-4 w-8 h-8 flex items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70 transition-colors">
                <i class="fa fa-times"></i>
            </button>
            <div class="bg-gray-100 flex items-center justify-center p-4">
                <img id="modalImage" src="" alt="大图预览" class="max-w-full max-h-[60vh] object-contain">
            </div>
            <div class="p-6">
                <h2 id="modalTitle" class="text-2xl font-bold mb-2"></h2>
                <p id="modalCategory" class="text-gray-500 mb-4"></p>
                <div class="flex gap-2 mb-6">
                    <button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors">
                        <i class="fa fa-heart-o text-gray-600"></i>
                    </button>
                    <button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors">
                        <i class="fa fa-share-alt text-gray-600"></i>
                    </button>
                    <button class="p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors">
                        <i class="fa fa-download text-gray-600"></i>
                    </button>
                </div>
            </div>
        </div>
    </div> -->

    <script>
        // 简单的交互脚本
        const galleryItem = document.querySelector('.image-container');
        const imageModal = document.getElementById('imageModal');
        const modalImage = document.getElementById('modalImage');
        const modalTitle = document.getElementById('modalTitle');
        const modalCategory = document.getElementById('modalCategory');
        const closeModal = document.getElementById('closeModal');

        galleryItem.addEventListener('click', () => {
            const imgSrc = galleryItem.querySelector('img').src;
            const imgAlt = galleryItem.querySelector('img').alt;
            const title = galleryItem.querySelector('h3').textContent;
            const category = galleryItem.querySelector('p').textContent;
            
            modalImage.src = imgSrc;
            modalImage.alt = imgAlt;
            modalTitle.textContent = title;
            modalCategory.textContent = category;
            
            imageModal.classList.remove('hidden');
            document.body.style.overflow = 'hidden';
        });

        closeModal.addEventListener('click', () => {
            imageModal.classList.add('hidden');
            document.body.style.overflow = 'auto';
        });

        imageModal.addEventListener('click', (e) => {
            if (e.target === imageModal) {
                imageModal.classList.add('hidden');
                document.body.style.overflow = 'auto';
            }
        });
    </script>
</body>
</html>
